﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InitApp.Controller;
using InitApp.IView;

namespace InitApp
{
    public partial class frmMain : Form, IMainFormView
    {
        private DataBaseController controller;

        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            controller = new DataBaseController(this);
        }

        private void btnInit_Click(object sender, EventArgs e)
        {
            controller.InitDataBase();
        }

        private void button1_Click(object sender, EventArgs e)
        {
//            controller.OpenUSB();
        }

        private void button2_Click(object sender, EventArgs e)
        {
//            controller.CloseUSB();
        }

        private void button3_Click(object sender, EventArgs e)
        {
//            controller.DownUSB();
        }
    }
}
